.commodity_param_detail {
  height: calc(100vh - 92px);
  box-sizing: border-box;
  padding: 12px;

  .main {
    width: 100%;
    height: 100%;
    background-color: #fff;
    box-sizing: border-box;
    padding: 12px;
    display: flex;
    flex-direction: column;

    .header {
      display: flex;
      justify-content: space-between;

      .title {
        display: flex;
        align-items: center;
        column-gap: 5px;

        span {
          white-space: nowrap;
          font-size: 14px;
        }
      }

      .btn_group {
        display: flex;
        column-gap: 5px;
      }
    }

    .line {
      border-bottom: 1px dotted #e5e5e5;
      margin: 12px 0;
    }

    .body {
      height: calc(100% - 53px);
      display: flex;
      flex-direction: column;
      row-gap: 12px;

      .header {
        .btn_group,
        .search {
          display: flex;
          column-gap: 5px;
        }
      }

      .table {
        max-height: calc(100% - 80px);
      }

      .pagination {
        display: flex;
        justify-content: flex-end;
      }
    }
  }
}

.field_content {
  display: flex;
  flex-direction: column;
  row-gap: 8px;

  .title {
    display: flex;
    column-gap: 5px;
    align-items: center;
  }

  :deep(.el-form) {
    display: flex;
    flex-direction: column;
    row-gap: 12px;

    .el-form-item {
      display: flex;

      .el-form-item__label {
        padding: 0 !important;
        margin: 0 !important;
        height: 28px !important;
        line-height: 28px !important;
      }

      .el-form-item__content {
        display: flex;
        column-gap: 10px;
        height: fit-content;

        .serial_number {
          width: 20px;
          text-align: center;
        }

        .el-input {
          width: calc(100% - 96px);
        }

        .el-space {
          height: 28px;

          .el-space__item {
            height: 28px;
            line-height: 28px;
          }
        }

        .el-form-item__error {
          margin: 3px 0 0 0;
          padding: 0;
        }
      }
    }
  }
}

.pt0 {
  padding-top: 0;
}

.my-header {
  h3 {
    color: #000;
    font-size: 14px;
  }
}

.btn_save {
  width: 3.2vw;
}

.btn_delete {
  color: #fff;
  width: 60px;
}

.h28 {
  height: 28px;
}

.btn_cancel {
  width: 3.2vw;
}

:deep(.add-dialog) {
  .form-text {
    .form-item {
      margin-bottom: 20px;

      .item-input {
        width: 200px;
      }

      p {
        width: 200px;
        padding-top: 2px;
        font-size: 12px;
        line-height: 16px;
        color: #999999;
      }
    }
  }

  .field-text {
    padding: 0 10px;
  }

  .list {
    margin: 10px 0;
    max-height: 220px;
    overflow-y: auto;
    height: 100%;

    .text-item {
      margin-bottom: 15px;

      .num {
        width: 25px;
        text-align: center;
        font-size: 12px;
        margin-right: 12px;
      }

      .text-input {
        width: 230px;
      }

      .delete {
        margin-left: 15px;
        font-size: 12px;
        color: #f56c6c;
        cursor: pointer;
      }

      .el-form-item__error {
        left: 38px;
      }
    }
  }

  .addText {
    display: inline-block;
    color: #007cff;
    cursor: pointer;
  }

  .btns {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 10px;
  }
}

.el-tag.el-tag--success {
  --el-tag-text-color: #00c0c0;
  --el-tag-bg-color: #ebf6f6;
  --el-tag-border-color: #ebf6f6;
  --el-tag-hover-color: #00c0c0;
}

.el-tag.el-tag--info {
  --el-tag-border-color: var(--el-color-info-light-9);
}

.el-tag {
  --el-tag-border-color: var(--el-color-primary-light-9);
}

.el-tag.el-tag--warning {
  --el-tag-border-color: var(--el-color-warning-light-9);
}
